<%@ page contentType="text/xml; charset=UTF-8" language="java" import="java.util.*" errorPage="/error.jsp" %>
<%@ page import="com.config.SystemGlobals" %>
<%@ page import="com.beans.music.*" %>
<%@ page import="com.business.music.*" %>
<?xml version="1.0" encoding="utf-8"?>
<playlist  version="1.5"  firstRun="10">
<%
String id=request.getParameter("id");
	String path = request.getContextPath();
  	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path;
 	  MusicListBus mlb=new MusicListBus();
		  int ID=Integer.parseInt(id);
	List list=mlb.getAllMusicByTypeID(ID);
	for(int i=0;i<list.size();i++){
	MusicInfo mi=(MusicInfo)list.get(i);
%>

	<music name="<%=mi.getSinger()%>-<%=mi.getClassName()%>--<%=mi.getMusicName()%> " addres="<%=basePath+mi.getMusicUrl()%>" lrc="<%=basePath+mi.getLrcUrl()%>"/>
<%
	}
%>
</playlist>


